from typing import List


def isToeplitzMatrix(matrix: List[List[int]]) -> bool:
    m = len(matrix)
    for i in range(m-1):
        if matrix[i][:-1] != matrix[i+1][1:]:
            return False
    return True
    